﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Electric.DbMigrator.Migrations
{
    /// <inheritdoc />
    public partial class InitDB2 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7247));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7271));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7273));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 4L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7276));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 5L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7279));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 6L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7292));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 7L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7294));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 8L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7296));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 9L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7299));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 10L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7301));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 11L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7302));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 12L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7304));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 13L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7306));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 14L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7308));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 15L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7309));

            migrationBuilder.InsertData(
                table: "ElePermission",
                columns: new[] { "Id", "ApiMethod", "Code", "Component", "CreationTime", "CreatorId", "Icon", "LastModificationTime", "Name", "ParentId", "PermissionType", "Remark", "Sort", "Status", "Url" },
                values: new object[] { 16L, "", "log.auditlog", "", new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7291), 0L, "bug", null, "日志管理", 0L, 0, null, 0, 1, "log" });

            migrationBuilder.UpdateData(
                table: "EleRole",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 900, DateTimeKind.Local).AddTicks(7000));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7360));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7364));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7365));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 4L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7366));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 5L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7367));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 6L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7368));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 7L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7369));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 8L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7370));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 9L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7372));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 10L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7372));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 11L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7373));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 12L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7374));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 13L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7375));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 14L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7375));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 15L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7376));

            migrationBuilder.UpdateData(
                table: "EleUser",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "ConcurrencyStamp", "CreationTime", "PasswordHash" },
                values: new object[] { "f953ba52-48ab-44ca-9d5f-8a0d823a1456", new DateTime(2023, 12, 3, 17, 6, 23, 900, DateTimeKind.Local).AddTicks(7263), "AQAAAAIAAYagAAAAEA52v9LZOZjEPGPhEFuClOm5nAlXDHdDF45MQeKr2FPAAX21i+fM4yrfLhhPskk+pw==" });

            migrationBuilder.InsertData(
                table: "EleRolePermission",
                columns: new[] { "Id", "CreationTime", "CreatorId", "LastModificationTime", "PermissionId", "RoleId" },
                values: new object[] { 16L, new DateTime(2023, 12, 3, 17, 6, 23, 954, DateTimeKind.Local).AddTicks(7368), 0L, null, 16L, 1L });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 16L);

            migrationBuilder.DeleteData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 16L);

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1343));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1370));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1372));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 4L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1374));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 5L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1377));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 6L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1388));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 7L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1390));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 8L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1391));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 9L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1393));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 10L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1396));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 11L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1397));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 12L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1399));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 13L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1401));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 14L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1495));

            migrationBuilder.UpdateData(
                table: "ElePermission",
                keyColumn: "Id",
                keyValue: 15L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1497));

            migrationBuilder.UpdateData(
                table: "EleRole",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 640, DateTimeKind.Local).AddTicks(7365));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 1L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1598));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 2L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1602));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 3L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1602));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 4L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1603));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 5L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1604));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 6L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1605));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 7L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1606));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 8L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1606));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 9L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1607));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 10L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1608));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 11L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1609));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 12L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1609));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 13L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1610));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 14L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1611));

            migrationBuilder.UpdateData(
                table: "EleRolePermission",
                keyColumn: "Id",
                keyValue: 15L,
                column: "CreationTime",
                value: new DateTime(2023, 12, 3, 13, 5, 40, 694, DateTimeKind.Local).AddTicks(1611));

            migrationBuilder.UpdateData(
                table: "EleUser",
                keyColumn: "Id",
                keyValue: 1L,
                columns: new[] { "ConcurrencyStamp", "CreationTime", "PasswordHash" },
                values: new object[] { "c3471d39-0c1d-469f-a5ee-26eec0b9b287", new DateTime(2023, 12, 3, 13, 5, 40, 640, DateTimeKind.Local).AddTicks(7618), "AQAAAAIAAYagAAAAEHkxyS5QWzdOnxBBHf2u+D24LDSoaNUDLvTAFD2FkapTJSVF8SBqah8i8F+8AaduMA==" });
        }
    }
}
